package com.ag.wsq.action;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.apache.log4j.Logger;

import com.ag.bean.TbSched;
import com.ag.common.BaseAction;
import com.ag.wsq.service.impl.OneSchedServiceImpl;

public class OneSchedAction extends BaseAction {

	/**
	 * Author 王淑其
	 */
	private static final long serialVersionUID = 1L;
	private static final Logger logger = Logger.getLogger(OneSchedAction.class);
	private List<TbSched> tbScheds;
	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
	Date now = new Date();
	
	private OneSchedServiceImpl oneSchedServiceImpl;
	
	public String findOne(){
		logger.info("findOne start-------------");
		System.out.println("time:--------"+now);
		this.tbScheds = oneSchedServiceImpl.oneSched();
		return "findOneOK";
	}

	public OneSchedServiceImpl getOneSchedServiceImpl() {
		return oneSchedServiceImpl;
	}

	public void setOneSchedServiceImpl(OneSchedServiceImpl oneSchedServiceImpl) {
		this.oneSchedServiceImpl = oneSchedServiceImpl;
	}

	public List<TbSched> getTbScheds() {
		return tbScheds;
	}

	public void setTbScheds(List<TbSched> tbScheds) {
		this.tbScheds = tbScheds;
	}
}
